<template>
  <div class="Card">
    <p class="title">每日币用</p>
    <div class="box">
      <div class="listItem" v-for="(l,item) in list" :key="item" @click="tologin(l.path)">
        <p class="name">
          <img :src="l.icon" alt />
          <i v-if="l.seen">
            <img class="ts" :src="tsicon" alt />
          </i>
        </p>
        <p>{{l.name}}</p>
        <p>{{l.desc}}</p>
      </div>
    </div>
  </div>
</template>

<script>
import gdtx from "../../assets/img/icon_gdtx.png";
import hytx from "../../assets/img/icon_hytx.png";
import bltx from "../../assets/img/icon_bltx.png";
import tsicon from "@/assets/img/ts.png";
export default {
  name: "Everyday",
  data() {
    return {
		tsicon:tsicon,
      list: [
        {
          icon: bltx,
          name: "背离提醒",
          desc: "捕捉涨跌转折点",
          path: "/home/deviation",
          seen: true
        },

        {
          icon: gdtx,
          name: "高低提醒",
          desc: "寻找每天买卖点",
          path: "/home/height",
          seen: false
        },
        {
          icon: hytx,
          name: "合约提醒",
          desc: "给出每天多空价",
          path: "/home/contract",
          seen: false
        }
      ]
    };
  }
};
</script>

<style scoped>
.Card {
  /*width: 100%;*/
  height: 11rem;
  background: #fff;
  margin: 0.5rem auto;
  padding: 0 1rem;
}
.title {
  height: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #eeeeee;
  font-size: 0.94rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
  margin: 0;
}
.box {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.listItem {
  width: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.listItem p {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.3rem 0;
}
.listItem p:nth-child(1) img {
  width: 3rem;
}
.listItem p:nth-child(2) {
  font-size: 0.94rem;
  font-family: PingFang SC;
  font-weight: bold;
  color: rgba(51, 51, 51, 1);
}
.listItem p:nth-child(3) {
  font-size: 0.81rem;
  font-family: PingFang SC;
  font-weight: 500;
  color: rgba(102, 102, 102, 1);
}
.name {
  position: relative;
}
.name i {
  position: absolute;
  top: 0px;
  right: 0;
}
.name i img.ts {
  width: 30px;
}
</style>